xend: Fix xm block-detach regression introduced by c/s 15157.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 11 Jun 2007 09:14:54 +0000 (10:14 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 11 Jun 2007 09:14:54 +0000 (10:14 +0100)
commit34eef3528023013c168b8a14e697568ce6eb218c
tree9e9d6dc62d8f6f6030e9316d65f474d6347ae522
parent840f138cfaa1a591ebf3bc330e29aa872340443a
xend: Fix xm block-detach regression introduced by c/s 15157.

Prior to this c/s, user was able to specify device name or id, e.g.
 xm block-detach dom xvdb
 xm block-detach dom 15728

Now, 'xm block-detach dom xvdb' silently fails.  xend.log does contain
the following

[2007-06-07 11:39:18 xend.XendDomainInfo 3775] DEBUG
(XendDomainInfo:519) devName=vbd/51712
[2007-06-07 11:39:18 xend.XendDomainInfo 3775] DEBUG
(XendDomainInfo:527) Could not find the device xvdb

This patch restores the previous behavior but retains the bugfix
introduced by c/s 15571.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/XendDomainInfo.py